package com.ztesoft.web.common.vo;

import java.util.Date;

import org.apache.commons.lang.StringUtils;

import com.ztesoft.framework.dto.AbstractDto;

/**
 * 
 * 与IOCP同步数据VO
 * 
 * @author lin.weibin@zte.com.cn
 * @date 2015年9月10日
 * @since 1.0
 */
public class HostConnMethodVO extends AbstractDto{
	private Integer  hostId;
	private String  connMethod;
	private String  userName;
	private String  password;
	private Integer  port;
	private Date  createDate;
	private Date  stateDate;
	private String  state;
	private String  op;
    public Integer getHostId() {
        return hostId;
    }
    public void setHostId(Integer hostId) {
        this.hostId = hostId;
    }
   
    public String getConnMethod() {
        return StringUtils.isBlank(connMethod) ? connMethod : connMethod.trim();
    }
    public void setConnMethod(String connMethod) {
        this.connMethod = connMethod;
    }
    
    public String getUserName() {
        return StringUtils.isBlank(userName) ? userName : userName.trim();
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    
    public String getPassword() {
        return StringUtils.isBlank(password) ? password : password.trim();
    }
    public void setPassword(String password) {
        this.password = password;
    }
    
    public Integer getPort() {
        return port;
    }
    public void setPort(Integer port) {
        this.port = port;
    }
	public Date getStateDate() {
		if (stateDate != null) 
			return (Date) stateDate.clone();
		return null;
	}

	public void setStateDate(Date stateDate) {
		if (stateDate == null) {
			this.stateDate = null;
		} else {			
			this.stateDate = (Date)stateDate.clone();
		}
	}

	public Date getCreateDate() {
		if(createDate == null) {
	        return null;
	    }
	    return (Date) createDate.clone();
	}

	public void setCreateDate(Date createDate) {
		if (createDate == null) {
			this.createDate = null;
		} else {			
			this.createDate = (Date) createDate.clone();
		}
	}
   
    public String getState() {
        return StringUtils.isBlank(state) ? state : state.trim();
    }
    public void setState(String state) {
        this.state = state;
    }
    public String getOp() {
        return op;
    }
    public void setOp(String op) {
        this.op = op;
    }
    
}